﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Homework5._5
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("请输入第一个数字：");
            double Number1 = Convert.ToDouble(Console.ReadLine());
            Console.Write("请输入第二个数字：");
            double Number2 = Convert.ToDouble(Console.ReadLine());
            double MyMax = Math.Max(Number1, Number2);
            double MyMin = Math.Min(Number1, Number2);
            Console.WriteLine($"两数中最大数为：{MyMax}，最小数为：{MyMin }");
            Console.ReadKey();
        }
    }
}
